package com.myway.service.payment.Oceanpayment;

import com.myway.dto.payment.oceanpayment.OceanpaymentParams;
import com.myway.pojo.FlyOrder;
import com.myway.pojo.TbcResultCode;

/**
 * Created by qianmi-05 on 2018/9/19.
 */
public interface TBCService {

    public String TBCToPay(String orderid);

    public String callBackByTransId(String transId);

    public String addTbcPaymentInfo(String orderId,String transId,String  result,String result_code,String DSECURE,String RRN,String APPROVAL_CODE,String BANK_ID,String callBackResultStr,String firstTransId);

    //根据订单的id 查询订单
    public FlyOrder selectByOrderId(String id);

    //根据返回码 查询错误原因
    public TbcResultCode getTbcResultCode(String resultCode);

    /*根据firstTransId查询订单*/
    public FlyOrder getOrderByFirstTransId(String transId);

}
